<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="../gvis.js"></script>
<?php

    // note sure yet how to implement a value format for a table cell 
    // for example where the value is 1000 and the formattted value is $1,000
  	require_once '../classes/gvisWriter.php';
  	$gvisJSObject = new gvisWriter(1,'geomap', 'chart_div1', "width:600, height:360"); 	 	
	$gvisJSObject->addRow(array('CN', 1000));
	$gvisJSObject->addRow(array('US', 5000));
	$gvisJSObject->addRow(array('IN', 2500));
	$gvisJSObject->addRow(array('DE', 4000));
	$gvisJSObject->addRow(array('FR', 2200));						
  	echo $gvisJSObject->getScriptString();
?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Example gvisWriter.php Geo Map/title>
</head>
<body>
	<br/>
    <div id='chart_div1'></div>
</body>
</html>